package com.example.project.entity;

import com.example.project.base.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "UserVO")
public class UserVO extends BaseEntity<Integer> {
    @Column(name = "account")
    private String account;
    @Column(name = "password")
    private String password;
    @Column(name = "userName")
    private String userName;
    @Column(name = "nickName")
    private String nickName;
    @Column(name = "headUrl")
    private String headUrl;
    @Column(name = "phone")
    private String phone;
    @Column(name = "email")
    private String email;
    @Column(name = "area")
    private String area;
    @Column(name = "address")
    private String address;
    @Column(name = "integral")
    private Integer integral;
    @Column(name = "middle")
    private Integer middle;
    @Column(name = "inviteCode")
    private String inviteCode;
    @Column(name = "sort")
    private Integer sort;
    @Column(name = "createBy")
    private String createBy;
    @Column(name = "createDate")
    private Date createDate;
    @Column(name = "updateBy")
    private String updateBy;
    @Column(name = "updateDate")
    private Date updateDate;
    @Column(name = "audit")
    private Integer audit;

    public UserVO(){}

    public UserVO(Integer pkid,Integer integral) {
        this.pkid = pkid;
        this.integral = integral;
    }
}
